package com.yanqu.road.server.cmd.activity.stronghold.wild;

import com.yanqu.road.pb.activity.StrongholdWarProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.CrossProtocol;
import com.yanqu.road.server.protocol.GameProtocol;
import com.yanqu.road.server.protocol.Protocol;

@Cmd(code = GameProtocol.S_STRONGHOLD_USER_RANK, desc = "")
public class StrongholdUserRankCmd extends AbstractCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        StrongholdWarProto.StrongholdActivityUserRankListReqMsg req = StrongholdWarProto.StrongholdActivityUserRankListReqMsg.parseFrom(packet.getBytes());
        player.sendUnionActivityGroupPacket(CrossProtocol.C_CROSS_STRONGHOLD_USER_RANK, req.toBuilder(), req.getActivityId());
    }

    @Override
    public void sendData(GamePlayer player) {

    }
}
